const publicStyle = { style: { width: "240px" } };

const orderField = [
  {
    field: "bill_number",
    type: "input",
    placeholder: "账号编号",
    ...publicStyle,
  },
  {
    field: "logistics_id",
    type: "select",
    options: {
      placeholder: "物流商名称",
      labelKey: "logistics_name",
      valueKey: "logistics_id",
    },
    collapseTags: true,
    multiple: true,
    class: "select-wrapper-style",
    ...publicStyle,
    originOption: "logistics",
  },
  {
    field: "audit_status",
    type: "select",
    originOption: "finance_tail_bill_audit_status",
    options: {
      placeholder: "状态",
    },
    style: { width: "90px" },
  },
  {
    field: "dateRange",
    type: "dateTimeRange",
    style: { width: "360px" },
    itemProps: {
      startPlaceholder: "添加最早时间",
      endPlaceholder: "添加最晚时间",
    },
  },
];

const otherField = [
  {
    field: "trade_number",
    type: "input",
    placeholder: "交易号",
    ...publicStyle,
  },
  {
    field: "cost_ident",
    type: "select",
    originOption: "cost",
    ...publicStyle,
    options: {
      placeholder: "费用名称",
      labelKey: "cost_label",
      valueKey: "cost_ident",
    },
  },
  {
    field: "audit_status",
    type: "select",
    originOption: "finance_tail_other_fee_audit_status",
    options: {
      placeholder: "状态",
    },
    style: { width: "90px" },
  },
  {
    field: "dateRange",
    type: "dateTimeRange",
    style: { width: "360px" },
    itemProps: {
      startPlaceholder: "添加最早时间",
      endPlaceholder: "添加最晚时间",
    },
  },
];

export { orderField, otherField };
